//
//  ZBSection.h
//  XZBProduct
//
//  Created by xzb on 2018/7/23.
//  Copyright © 2018年 xzb. All rights reserved.
//

#import <Foundation/Foundation.h>

@class ZBRow;

@interface ZBSection : NSObject

@property (nonatomic, copy) NSString *key;

@property (nonatomic, strong) ZBRow *headerView;

@property (nonatomic, strong) ZBRow *footerView;

- (NSArray<__kindof ZBRow *> *)rows;

- (ZBRow *)rowAtIdx:(NSInteger)idx;

- (void)appendRows:(NSArray<__kindof ZBRow *> *)rows;

- (void)insertRows:(NSArray<__kindof ZBRow *> *)rows atIdx:(NSUInteger)idx;

- (void)deleteRowsForIdxs:(NSArray<NSNumber *> *)idxs;

- (void)moveRowFromIdx:(NSUInteger)fromIdx toIndex:(NSUInteger)toIdx;

- (void)replaceSectionWithRows:(NSArray<__kindof ZBRow *> *)rows;



@end
